//
//  SSGAFSimpleTool.h
//  Bravo
//
//  Created by 吴凡 on 2017/11/7.
//  Copyright © 2017年 SSG. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "AFNetworking.h"

typedef void (^LHResponseSuccess)(NSURLSessionDataTask * task,id responseObject);
typedef void (^LHResponseFail)(NSURLSessionDataTask * task, NSError * error);
typedef void (^LHProgress)(NSProgress *progress);


@interface SSGAFSimpleTool : NSObject

+ (NSString *)imageBaseURL;
+ (NSString *)baseURL;
+ (NSString *)h5BaseUrl;
+ (instancetype)sharedManager;

-(void)GET:(NSString *)path
    params:(NSDictionary *)params success:(LHResponseSuccess)success
      fail:(LHResponseFail)fail;


-(void)POST:(NSString *)path
     params:(NSDictionary *)params
    success:(LHResponseSuccess)success
       fail:(LHResponseFail)fail;

-(void)PUT:(NSString *)path
     params:(NSDictionary *)params
    success:(LHResponseSuccess)success
       fail:(LHResponseFail)fail;

-(void)DELETE:(NSString *)path
    params:(NSDictionary *)params
   success:(LHResponseSuccess)success
      fail:(LHResponseFail)fail;

@end

